import request from '@/utils/request'

// 查询微信跳转，生成链接列表
export function listJump(query) {
  return request({
    url: '/system/jump/list',
    method: 'get',
    params: query
  })
}

// 查询微信跳转，生成链接详细
export function getJump(id) {
  return request({
    url: '/system/jump/' + id,
    method: 'get'
  })
}

// 新增微信跳转，生成链接
export function addJump(data) {
  return request({
    url: '/system/jump',
    method: 'post',
    data: data
  })
}

// 修改微信跳转，生成链接
export function updateJump(data) {
  return request({
    url: '/system/jump',
    method: 'put',
    data: data
  })
}

// 删除微信跳转，生成链接
export function delJump(id) {
  return request({
    url: '/system/jump/' + id,
    method: 'delete'
  })
}
